
package Datatypes;
/**
 *
 * @author chonabook
 */
import java.io.Serializable;
import java.util.ArrayList;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dataEstadistica", propOrder = {
    
    "nick",
    "op",
    "datosX",
    "datosY"
    
})

public class DataEstadistica implements Serializable{
    
    
    //Atributos privados
    private String nick = null;
    private ArrayList<String> op;
    private ArrayList<String> datosX;
    private ArrayList<Double> datosY;
    
    //Constructor
    public DataEstadistica(String n){
    
        this.nick = n;
        this.datosX = new ArrayList();
        this.datosY = new ArrayList();
        this.op = new ArrayList();
        
    }
    
    public DataEstadistica(){}
    
          
    public String getNickDesarrollador(){ return this.nick; }
    public ArrayList<String> getOp(){ return this.op; }
    public ArrayList<String> getDatosX(){ return this.datosX; }
    public ArrayList<Double> getDatosY(){ return this.datosY; }
        
    //Modificadoras          
    public void setNickDesarrollador(String n){ this.nick = n; }
    
    //Predicados
    public boolean esVacioDatosX(){ return this.datosX == null; }
    
    //Funciones Aux
    public Integer getCantidadOp(){ return op.size(); }

    
} 